package com.itat.view.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author itat
 */
@Controller
public class IndexController {

    @RequestMapping("/index")
    public String index(){

        return "index";
    }
    @RequestMapping("/indexLoadData")
    public ModelAndView indexForData(){
        ModelAndView modelAndView = new ModelAndView("indexLoadData");
        modelAndView.addObject("data","yes");
        return modelAndView;
    }
}
